﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ClimbTracker.GUI;

namespace ClimbTracker
{
    static class Program
    {

        private static MainMDIForm _mainMDIForm;

        public static MainMDIForm mainMDIForm
        {
            get { return _mainMDIForm; }
            set { _mainMDIForm = value; }
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            _mainMDIForm = new MainMDIForm();
            Application.Run(mainMDIForm);
            Console.WriteLine("Exited");
            _mainMDIForm.TrackingTabControl.abortRunning();
        }
    }
}